package com.springboot.repository;

import com.springboot.entity.HealthRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Date;
import java.util.List;


/**
 * @author: lzh
 */
public interface HealthRecordRepositiry extends JpaRepository<HealthRecord, Integer>, JpaSpecificationExecutor<HealthRecord> {

    List<HealthRecord> findByTimeBetween(Date initDateByDay, Date date);
}
